/*
* Java Card File Parser 
* Based on openjcvm project 
*/
package org.naive.metawatch.converter.exp;

import java.text.ParseException;
import org.naive.metawatch.converter.parser.FieldSize;
import org.naive.metawatch.converter.parser.ParseContext;
import org.naive.metawatch.converter.parser.Parseable;
import org.naive.metawatch.converter.parser.ParsedInt;
import org.naive.metawatch.converter.parser.ReferencesConstant;

/**
 *
 * @author Andrew Butenko
 */
public class Attributes extends Parseable {
    @ReferencesConstant
    @ParsedInt(FieldSize.SHORT)
    public int attrNameIndex;
    @ParsedInt(FieldSize.INT)
    public int attrLength;

    @Override
    public void parse(ParseContext px) throws ParseException {
        super.parse(px);
        px.advanceOffset(attrLength);
    }
    
}
